﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ProductionMilitaire.aspx.cs" Inherits="Royaume.ProductionMilitaire" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HolderStat2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HolderTop" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="HolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="HolderContent" runat="server">
<asp:GridView runat="server" AutoGenerateColumns="false" BorderStyle="None"
BorderWidth="1px" DataSourceID="source1" DataKeyNames="PkUnite" >
<Columns>
<asp:BoundField DataField="PkUnite" HeaderText="Niveau"  />
<asp:BoundField DataField="Nom" HeaderText="Nom" />
<asp:BoundField DataField="Tcreation" HeaderText="Temp Requis" />
<asp:BoundField DataField="BonusAttaque" HeaderText=" Bonus Attaque" />
<asp:BoundField DataField="life" headertext="Vie" />
<asp:BoundField DataField="degat" headertext="Dégat" /> 
<asp:BoundField DataField="NourrRequis" headertext="Nourriture" />
<asp:BoundField DataField="MineraisRequis" HeaderText="Minérais" />
<asp:BoundField DataField="BoisRequis" HeaderText="Bois" /> 
<asp:TemplateField>
<ItemTemplate>
<input name="MaRadio" type="radio"
value='<%# Eval("Nom") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>

</asp:GridView>
<asp:SqlDataSource ID="source1" runat="server" ConnectionString="<%$ConnectionStrings:connDB_GAME%>"
 SelectCommand="select * from [T_Unites]" DataSourceMode="DataSet" > </asp:SqlDataSource>

 <asp:TextBox ID="txtunit" runat="server" ></asp:TextBox>
 <asp:Button ID="btnvalid" Text="OK" runat="server" onclick="btnvalid_Click" />
 
 <asp:Label ID="lblmessage" runat="server"></asp:Label>
</asp:Content>
